Skip to content

fix(linux_introspection): declare pkg-config as buildtool_depend#353

Merged
bburda merged 1 commit intomainfrom
fix/352-pkg-config-buildtool-depend
Apr 6, 2026
Merged

fix(linux_introspection): declare pkg-config as buildtool_depend#353
bburda merged 1 commit intomainfrom
fix/352-pkg-config-buildtool-depend

Conversation

@bburda
Copy link
Copy Markdown
Collaborator

@bburda bburda commented Apr 5, 2026

Pull Request

Summary

The ros2_medkit_linux_introspection package fails to configure on the ROS buildfarm because pkg-config is not installed on clean agents. CMakeLists.txt uses find_package(PkgConfig REQUIRED) to locate libsystemd via pkg_check_modules, but package.xml did not declare pkg-config as a build tool dependency. rosdep only installs declared dependencies, so the binary was missing on the buildfarm while local dev environments have it system-wide, masking the issue.

This PR adds <buildtool_depend>pkg-config</buildtool_depend> to the package manifest so rosdep install pulls it in on clean agents.


Issue


Type

  • Bug fix
  • New feature or tests
  • Breaking change
  • Documentation only

Testing

  • Verified locally that package.xml still validates against package_format3.xsd.
  • Buildfarm job Hdev__ros2_medkit__ubuntu_jammy_amd64 (Humble / Jammy) previously failed with Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) at CMakeLists.txt:44. With the new buildtool dep, rosdep install will install pkg-config before CMake runs.

Checklist

  • Breaking changes are clearly described (and announced in docs / changelog if needed)
  • Tests were added or updated if needed
  • Docs were updated if behavior or public API changed

CMakeLists.txt uses find_package(PkgConfig REQUIRED) to locate
libsystemd via pkg_check_modules, but package.xml did not declare
pkg-config as a buildtool dependency. On clean buildfarm agents
rosdep only installs declared dependencies, so the pkg-config
binary was missing and CMake configure failed. Local dev
environments typically have pkg-config installed system-wide,
which masked the issue.

Closes #352
Copilot AI review requested due to automatic review settings April 5, 2026 19:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the ROS buildfarm configuration failure for ros2_medkit_linux_introspection by ensuring pkg-config is installed via rosdep, matching the package’s CMake usage of find_package(PkgConfig REQUIRED) for systemd detection.

Changes:

  • Add pkg-config as a buildtool_depend in ros2_medkit_linux_introspection/package.xml so clean build agents install it before CMake configure.

@bburda bburda self-assigned this Apr 5, 2026
@bburda bburda requested a review from mfaferek93 April 5, 2026 19:52
Copy link
Copy Markdown
Collaborator

@mfaferek93 mfaferek93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@bburda bburda merged commit e3bd533 into main Apr 6, 2026
18 checks passed
@bburda bburda deleted the fix/352-pkg-config-buildtool-depend branch April 6, 2026 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] ros2_medkit_linux_introspection fails on ROS buildfarm: missing pkg-config buildtool_depend

3 participants